import spinRoute from '@/router/spinRoute';

export default [
    {
        path: '/member/list',
        component: spinRoute('member/memberList'),
        meta: { title: '人员列表' },
        children: [
            {
                path: '/member/add',
                component: spinRoute('member/memberAdd'),
                meta: {
                    title: '新增人员',
                    breadParents: [
                        '/member/list'
                    ]
                },
            },
            {
                path: '/member/edit',
                component: spinRoute('member/memberEdit'),
                meta: {
                    title: '编辑人员',
                    breadParents: [
                        '/member/list'
                    ]
                },
            },
            {
                path: '/member/view',
                component: spinRoute('member/memberView'),
                meta: {
                    title: '查看人员',
                    breadParents: [
                        '/member/list'
                    ]
                },
            },
            {
                path: '/member/import',
                component: spinRoute('member/memberImport'),
                meta: {
                    title: '数据导入',
                    // 设置面包屑的父级列表
                    breadParents: [
                        '/member/list'
                    ]
                }
            },
        ]
    },
    {
        path: '/member/fields',
        component: spinRoute('member/fieldsSet'),
        meta: { title: '字段设置' },
    },
    {
        path: '/member/move',
        component: spinRoute('member/memberMove'),
        meta: { title: '工作人员接收管理' }
    },
    {
        path: '/member/fieldsCur',
        component: spinRoute('member/fieldsSetCur'),
        meta: { title: '字段设置' },
    },
]
